<template>
	<view class="pt100 pd">
		<view class="fz32 cf">
			绑定联网号
		</view>
		<view class="pr mt60">
			<input type="text" value="" placeholder="请输入联网设备号" class="jhhgerttyt" v-model="network"/>
			<image src="../../static/img/saoyisao.png" class="saomhnseer" @tap="saomasd"></image>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				carid:"",
				license:"",
				network:""
			}
		},
		components: {},
		onLoad(e) {
			console.log("参数",e.carid,e.license)
			this.carid=e.carid
			this.license=e.license			
			uni.setNavigationBarTitle({
				title:e.license
			});
		},
		methods: {
			saomasd(){
				uni.scanCode({
				    success: function (res) {
				    }
				});
			}			
		},
		onNavigationBarButtonTap() {	
			if(this.network){
				uni.navigateTo({
					url:"BindingNetworkinger?carid="+this.carid+'&net='+this.network+'&license='+this.license
				})
			}else{
				uni.showToast({
					title:"请绑定联网号",
					icon:"none"
				})
			}
			
		},
		mounted() {}
	}
</script>
<style scoped>
	
</style>
